#include "mydialog.h"
#include "ui_mydialog.h"

mydialog::mydialog(QWidget *parent, QString message) :
    QDialog(parent),
    ui(new Ui::mydialog)
{
    ui->setupUi(this);
    this->message = message;
    ui->label_2->setWordWrap(true);
    ui->label_2->setTextFormat(Qt::PlainText);
    ui->label_2->setText(message);

    setWindowFlags(Qt::FramelessWindowHint | Qt::Tool); // 无边框设置
    setAttribute(Qt::WA_TranslucentBackground);// 背景透明设置

}

mydialog::~mydialog()
{
    delete ui;
}


void mydialog::on_pushButton_clicked()
{
    close();
}
